<?php
 require("include/top.php");
 
 if(!empty($_SESSION['sharing']['id'])){
 $categories= Category::getAllCategory();
 $tpl->assign ('categories',$categories);
	if (!empty($_POST)) 
	require(FORM_PATH."mask_category.form.php");
 
	$tpl->display("header.tpl");
    $tpl->display("menu.tpl");
	$tpl->display("mask_category.tpl");
	$tpl->display("footer.tpl");
	}
 else {header('Location:login.php');}
require("include/bottom.php");	
?>